package com.product.system.mapper;

import com.product.system.domain.FactoryUser;
import com.product.system.domain.request.SysRoleSerch;
import com.product.system.domain.response.SysRole;
import com.product.system.domain.response.SysShowForm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleMapper {
    List<SysRole> roleList(SysRoleSerch sysRoleSerch);

    Boolean roleAdd(SysRole sysRole);

    Boolean roleUpdata(SysRole sysRole);

    List<SysRole> excelList();

    Boolean roleDel(Integer roleId);

    SysRole getRoleIdByRoleName(String roleName);

    List<SysShowForm> showForm();

    void loadinRoleMatchAdd(List<SysRole> cachedSysRoleList);

    FactoryUser selectSysRole(String name);
}
